package com.apexsoft.assets.base.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * Created on 2018/3/2.
 *
 * @author Sury
 */
@ApiModel
public class User {
    @ApiModelProperty(position = 0,notes = "用户ID")
    private Long id;
    @ApiModelProperty(position = 1,notes = "用户编号：客户号或者员工号", required = true)
    private String userNum;
    @ApiModelProperty(position = 2,notes = "用户名称", required = true)
    private String userName;
    @ApiModelProperty(position = 3,notes = "用户属性")
    private String userAttr;
    @ApiModelProperty(position = 4,notes = "添加时间")
    private Long addTime;
    @ApiModelProperty(position = 5,notes = "角色列表")
    private List<UserRole> roleList = new ArrayList<>();
    @ApiModelProperty(position = 6,notes = "角色名称")
    private String roleNames;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserNum() {
        return userNum;
    }

    public void setUserNum(String userNum) {
        this.userNum = userNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserAttr() {
        return userAttr;
    }

    public void setUserAttr(String userAttr) {
        this.userAttr = userAttr;
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public List<UserRole> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<UserRole> roleList) {
        this.roleList = roleList;
    }

    public String getRoleNames() {
        return roleNames;
    }

    public void setRoleNames(String roleNames) {
        this.roleNames = roleNames;
    }
}